<?php
    
//本地路径
$local = '/wwwroot/test';
//仓库地址
$remote = 'https://gitee.com/yhtsm/test.git';
//system('cd {$local} && C:/"Program Files"/Git/cmd/git.exe pull {$remote} 2>&1',$out);
system('cd /wwwroot/test && "C:/Program Files/Git/cmd/git.exe" pull https://gitee.com/yhtsm/test.git 2>&1',$out);
echo $out;
    //echo shell_exec('cd {$local} && C:/"Program Files"/Git/cmd/git.exe pull {$remote} 2>&1');  
 // phpinfos();
?>